#include "stdio.h"
#include "stdlib.h"

typedef struct
{
	int age;
	int height;
	int weight;
}* Person;

typedef struct
{
    int *age;
    int *height;
    int *weight;
}* Person_Point;


void print(Person person)
{
    printf("age=%d\n",person->age);
    printf("height=%d\n",person->height);
    printf("weight=%d\n",person->weight);
}

void print_point(Person_Point person_point)
{
    printf("age=%d\n",*(person_point->age));
    printf("height=%d\n",*(person_point->height));
    printf("weight=%d\n",*(person_point->weight));
}

int main(int argc, char const *argv[])
{
        Person person = (Person)malloc(sizeof(Person));
        person->age = 21;
        person->height = 22;
        person->weight= 23;
        print(person);

        Person_Point person_point = (Person_Point)malloc(sizeof(Person_Point));
        *(person_point->age) = 21;
        *(person_point->height)= 22;
        *(person_point->weight) = 23;
        print_point(person_point);
}
